<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PayChannel</title>
<link href="styles/general.css" rel="stylesheet" type="text/css" /><link href="styles/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/transport.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <script src="js/utils.js" type="text/javascript"></script>
     <script type="text/javascript" src="js/jquery/jquery-1.7.2.min.js"></script>
     <script type="text/javascript" src="js/jquerytablesorter/jquery.tablesorter.min.js"></script>
	<script type="text/javascript">
		function apppointentryshow(type,id,appnumber)
		{
			if(type=="delete"){
				window.location.href="apppointentry_save.do?type="+type+"&model.id="+id+"&model.appnumber="+appnumber;	
			}else{
				window.location.href="apppointentry_show.do?type="+type+"&model.id="+id+"&model.appnumber="+appnumber;
			}
		}
		function goback(appnumber)
		{
			window.location.href="apppointofbilling_list.do?appinfo.appnumber="+appnumber;
		}
	</script>
</head>

<body>
<h1>
        <span class="action-span"><a href="javascript:void(0);" onclick="apppointentryshow('insert','-1','<s:property value="model.appnumber"/>')">添加计费点入口</a></span> <span
            class="action-span1"><a href="mainframe.jsp">
                首页</a> </span><span id="search_id" class="action-span1">- 计费点入口管理（ 游戏名称：<s:property value="appinfo.appname"/>） </span>
    </h1>
     <input name="cpid" type="hidden" id="cpid"  value="<s:property value="cpid"/>"/>
    <input name="categoryparentid" type="hidden" id="categoryparentid"  value="<s:property value="categoryparentid"/>"/>
    <input name="appName" type="hidden" id="appName"  value="<s:property value="appName"/>"/>
   <!-- start ad menu list -->
    <div class="list-div" id="listDiv">
     <table id="myTable" width="100%" cellspacing="1" cellpadding="2" class="sortable">
         <thead>
             <tr>
                <th height="25px;">计费点入口code</th>
		        <th>计费点入口名称</th>
		        <th>触发计费说明</th>
		        <th>操作</th>
             </tr>
              </thead>
             <s:if test="list.size()>0">
             <tbody>
			 <s:iterator value="list" status="i"> 
				 <tr>
				 	<td style="background-color: rgb(255, 255, 255);text-align: center;"><s:property value="entrycode"/></td>	                
				    <td style="background-color: rgb(255, 255, 255);text-align: center;"><s:property value="entryname"/></td> 
				    <td style="background-color: rgb(255, 255, 255);"><s:property value="triggerremark"/></td>
				    <td nowrap="nowrap" align="center" style="background-color: rgb(255, 255, 255);">
				     <s:if test="isUpdate.equals('true')">
					     <a href="javascript:void(0);" onclick="apppointentryshow('update','<s:property value="id"/>','<s:property value="appinfo.appnumber"/>')">
					     	<img height="16" width="16" border="0" src="img/icon_edit.gif" alt="编辑"></a>&nbsp;
						<a href="javascript:void(0);" onclick="if(confirm('警告！！确定要删除吗？')){apppointentryshow('delete','<s:property value="id"/>','<s:property value="appinfo.appnumber"/>');}">
							<img height="16" width="16" border="0" src="img/icon_trash.gif" alt="删除">
						</a>	
					</s:if>
					<s:else>
						<a href="javascript:void(0);" onclick="apppointentryshow('update','<s:property value="id"/>','<s:property value="appinfo.appnumber"/>')">
							<img height="16" width="16" border="0" src="img/icon_view.gif" alt="查看">
						</a>   
					</s:else>
					</td>
				</tr>
			</s:iterator>
			</tbody>
			</s:if>
			<s:else><tr><td colspan="4" align="center">无</td></tr></s:else>
			<tr>
				<td colspan="4" align="center"><input type="button" value=" 返回 " class="button" onclick="goback('<s:property value="appinfo.appnumber"/>')"/></td>
			</tr>
  </table>
  </div>
 <!--Bottom开始-->
    <script language="JavaScript">

if (document.getElementById("listDiv"))
{
  document.getElementById("listDiv").onmouseover = function(e)
  {
    obj = Utils.srcElement(e);

    if (obj)
    {
      if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
      else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
      else return;

      for (i = 0; i < row.cells.length; i++)
      {
        if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#eeeded';
      }
    }

  }

  document.getElementById("listDiv").onmouseout = function(e)
  {
    obj = Utils.srcElement(e);

    if (obj)
    {
      if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
      else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
      else return;

      for (i = 0; i < row.cells.length; i++)
      {
          if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#FFF';
      }
    }
  }

}
	$(document).ready(function() {
	   $("#myTable").tablesorter();
	});
    </script>
    
<div id="footer">
<br />
<s:property value="bottom"/></div>
    <!--Bottom结束-->
</body>
</html>